package com.expense.common.exception;

/**
 * 平台异常统一处理
 */
public class PlatformException extends RuntimeException {
    private Integer code;

    public PlatformException() {
        super();
    }


    public PlatformException(String message) {
        super(message);
    }

    public PlatformException(String message, Throwable e){
        super(message,e);
    }

    public PlatformException(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
